/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cs.helsinki.fi.rio.space;

/**
 *
 * @author deiga
 */
public class Note {
    
    public String id;
    public Object[] p;
    
    // Constructor for an array of objects
    public Note (String id, Object[] p) {
        this.id = id;
        if (p != null ) this.p = p.clone();
    }
    
    // Constructor fir a single integer
    public Note (String id, int p1) {
        this(id, new Object[]{new Integer(p1)});
    }
    
    // Accessor for a single integer value
    public int get(int i) {
        return ((Integer )p[i]).intValue();
    }
}
